package com.vehicle.service;

import com.vehicle.bean.Area;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vehicle.form.AreaAddForm;
import com.vehicle.vo.AreaVO;
import com.vehicle.vo.FilterVO;
import com.vehicle.vo.ListAreaVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 校园车辆管理系统
 * @since 2023-04-21
 */
@Service
public interface AreaService extends IService<Area> {

    //添加区域信息
    public AreaVO addAreaMessage(String ip,Integer aid,AreaAddForm areaAddForm,Integer id);

    //获取所有车位信息
    public ListAreaVO getAllAreaList(Integer page, Integer size);

    public List<AreaVO> getAreaListByContent(String content);

    public List<FilterVO> getAreaNameList();

    public List<FilterVO> getLocationListByName(String name);

    public List<FilterVO> getCategoryNameListByNameAndLocation(String name,String location);
    public List<FilterVO> getParkingIdByAreaId(String name,String location,String categoryName);


    //根据ID删除信息
    public boolean deleteById(String ip,Integer aid,Integer id);

    //修改停车区域信息
    public boolean updateAreaMessage(String ip,Integer aid,AreaAddForm areaAddForm,Integer id);

}
